//
//  ZWTools.h
//  ZhengWeiZhongYi
//
//  Created by apple on 17/6/10.
//  Copyright © 2017年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef void(^IsLoginActionBlock)(BOOL isScuess);
typedef void (^ScuessBlock)(id jsonResponse);
typedef void (^ErrorBlock)(id jsonResponse);


@interface ZWTools : NSObject
+ (ZWTools *)sharedManager;

@property (nonatomic,copy) IsLoginActionBlock loginBlock; //是否登录

//***********************************************用户************************************

//获取短信验证码
- (void) getPhoneCodeFromNetWorkingID:(NSString *)phone sucessBlock: (ScuessBlock)sucessBlock Error:(ErrorBlock) erroBlock;
//注册
- (void)regist:(NSDictionary *)registDic sucessBlock: (ScuessBlock)sucessBlock Error:(ErrorBlock) erroBlock;
//保存用户昵称
- (void)editUserNickName:(NSDictionary *)registDic sucessBlock: (ScuessBlock)sucessBlock Error:(ErrorBlock) erroBlock;
//登录
- (void)login:(NSDictionary *)registDic sucessBlock: (ScuessBlock)sucessBlock Error:(ErrorBlock) erroBlock;

//找回密码验证
- (void)doFindUser:(NSDictionary *)registDic sucessBlock: (ScuessBlock)sucessBlock Error:(ErrorBlock) erroBlock;

//获得收款地址列表
- (void)getPaymentAddressList:(NSDictionary *)registDic sucessBlock: (ScuessBlock)sucessBlock Error:(ErrorBlock) erroBlock;

//增加收款地址
- (void)addPaymentAddress:(NSDictionary *)registDic sucessBlock: (ScuessBlock)sucessBlock Error:(ErrorBlock) erroBlock;

//获取收币地址
- (void)getCoinAddressList:(NSDictionary *)registDic sucessBlock: (ScuessBlock)sucessBlock Error:(ErrorBlock) erroBlock;
//新增收币地址
- (void)addCoinAddress:(NSDictionary *)registDic sucessBlock: (ScuessBlock)sucessBlock Error:(ErrorBlock) erroBlock;

//***********************************************中介************************************
//登录
- (void)icLogin:(NSDictionary *)registDic sucessBlock: (ScuessBlock)sucessBlock Error:(ErrorBlock) erroBlock;


@end
